package com.javagroup.chessonline.callback;

import com.javagroup.chessonline.client.Client;
import com.javagroup.chessonline.pojo.ChessOnlineRoom;

public class ChooseRoomCallback extends ClientCallback{

	private ChessOnlineRoom mRoom;
	
	public ChooseRoomCallback(Client client, ChessOnlineRoom room) {
		super(client);
		this.mRoom = room;
	}
	
	@Override
	public void perform() {
		// TODO: Check the server if it can to join this room
		// if can, we need to save the League ID if any
		mMainScreen.showRoomView(mRoom);
	}
	
}
